package com.example.demo.service;

import com.example.demo.entity.User;
import org.springframework.stereotype.Service;

@Service
public class UserService {


	public User findByUsername(String name){
		User u = new User();
		u.setUsername("张三");
		u.setPassword("asdf");
		return u;
	}

	public User findByUserId(String id){
        User u = new User();
        u.setUsername("张三");
        u.setPassword("asdf");
        u.setId("123");
        return u;
    }
}
